/*
 *	Copyright © 2013 Changsha Shishuo Network Technology Co., Ltd. All rights reserved.
 *	长沙市师说网络科技有限公司 版权所有
 *	http://www.shishuo.com
 */

package com.hlingsoft.kkh.dao;

import com.hlingsoft.kkh.entity.ReportRs;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

/**
 * 用户服务
 *
 * @author Zhang jiale
 *
 */

@Repository
public interface ReportRsDao {


	/**
	 * 添加举报原因
	 *
	 * @param reportRs
	 * @return Integer
	 */
	public int addReportRs(ReportRs reportRs);

	/**
	 * 获取所有举报原因
	 * @return
	 */
	public List<ReportRs> getReportRs();

	/**
	 * 获取举报原因的总数
	 * @return
	 */
	public int getReportRsCount();


	/**
	 * 分页获取举报所有举报原因
	 * @param offset
	 * @param rows
	 * @return
	 */
	public List<ReportRs> getReportRsLimit(@Param("offset")int offset,@Param("rows") int rows);


	/**
	 * 通过id查询
	 * @param id
	 * @return
	 */
	public ReportRs getReportRsById(@Param("id")long id);

	public Integer updateReportRs(ReportRs reportRs);

}
